package com.zzyl.service;

import com.zzyl.dto.ResourceDto;
import com.zzyl.vo.MenuVo;
import com.zzyl.vo.ResourceVo;
import com.zzyl.vo.TreeVo;

import java.util.List;

/**
 * @Description ResourceService
 * @Author chenchuang
 * @Date 2024-08-31
 */
public interface ResourceService {
    List<ResourceVo> findResourceList(ResourceDto resourceDto);

    TreeVo resourceTreeVo(ResourceDto resourceDto);

    void createResource(ResourceDto resourceDto);

    void deleteByMenuId(String menuId);

    void update(ResourceDto resourceDto);

    void updateState(ResourceDto resourceDto);

    /**
     * 根据用户id查询对应的资源数据
     * @param userId
     * @return
     */
    List<MenuVo> menus(Long userId);
}
